package tw.asap.plus.entity;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.HashMap;

import tw.asap.plus.entity.response.GoodsDetailNV;

/**
 * Description:
 * Created:      [15/12/29]
 * Author:       [Yang]
 **/
public class SubCartBean implements Parcelable {

    private int count;
    private String GoodsId;
    private HashMap<String,GoodsDetailNV.PropsEntity.ValuesEntity> propertyMap;
    private String subId;

    public String getSubId() {
        return subId;
    }

    public void setSubId(String subId) {
        this.subId = subId;
    }

    public HashMap<String, GoodsDetailNV.PropsEntity.ValuesEntity> getPropertyMap() {
        return propertyMap;
    }

    public void setPropertyMap(HashMap<String, GoodsDetailNV.PropsEntity.ValuesEntity> propertyMap) {
        this.propertyMap = propertyMap;
    }


    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public String getGoodsId() {
        return GoodsId;
    }

    public void setGoodsId(String goodsId) {
        GoodsId = goodsId;
    }


    public SubCartBean() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.count);
        dest.writeString(this.GoodsId);
        dest.writeSerializable(this.propertyMap);
        dest.writeString(this.subId);
    }

    protected SubCartBean(Parcel in) {
        this.count = in.readInt();
        this.GoodsId = in.readString();
        this.propertyMap = (HashMap<String, GoodsDetailNV.PropsEntity.ValuesEntity>) in.readSerializable();
        this.subId = in.readString();
    }

    public static final Creator<SubCartBean> CREATOR = new Creator<SubCartBean>() {
        public SubCartBean createFromParcel(Parcel source) {
            return new SubCartBean(source);
        }

        public SubCartBean[] newArray(int size) {
            return new SubCartBean[size];
        }
    };
}
